package com.kgc.scd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kgc.scd.bean.Order;
import com.kgc.scd.bean.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderMapper extends BaseMapper<Order> {


    /**
     * 根据id订单查询订单
     * @param orderId
     * @return
     */
    List<OrderVO> selectByOrderId(String orderId);



    /*long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(String orderId);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(String orderId);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);*/
}